package com.siterwell.push.entity;

public enum ResultEnum {
	SUCCESS(200,"success"),
	NOT_AUTH(403,"not auth"),
	FAILED(400, "failed"),
	ERROR(500, "ERROR"),
	CHECK_CODE_IS_EMPTY(71001, "Check code is Empty"),
	CHECK_CODE_IS_NOT_MATCH(71002, "Check code is not match"),
	USERNAME_IS_EMPTY(71003, "Username is Empty"),
	PASSWORD_IS_EMPTY(71004, "Password is Empty"),
	USERNAME_IS_EXIST(71005, "This user is existed"),
	USER_IS_NOT_EXIST(71006, "This user is not existed"),
	USERNAME_OR_PASSWORD_ERROR(71007, "account password is error"),
	LOGIN_TYPE_IS_EMPTY_OR_ERROR(71008, "login type is empty or error"),
	OLD_PASSWORD_IS_EMPTY(71009, "old password is empty"),
	NEW_PASSWORD_IS_EMPTY(71010, "new password is empty"),
	REFRESH_TOKEN_IS_NOT_EXIST(71011, "refresh token is not existed"),
	REFRESH_TOKEN_IS_EXSPIRED(71012, "refresh token is time expired"),
	REFRESH_TOKEN_IS_EMPTY(71013, "refresh token is empty"),
	PARAMS_EMPTY_ERROR(71014,"Params cannot be empty"),
	APPTID_IS_NOT_EXIST(71015, "pid check error"),
	EMAILBOX_EMPTY_ERROR(71016, "email is empty"),
	EMAILBOX_FORMAT_ERROR(71017, "email format error"),
	PARAMETER_ERROR(71018, "parameter error"),
	PID_EMPTY_ERROR(71019, "Pid is empty"),
	PID_IS_NOT_EXIST_ERROR(71020, "Pid is not exist"),
	SEND_MAIL_CODE_MULI_ERROR(71021, "Send multiple times, please try again in half an hour"),
	PASSWORD_LENGTH_ERROR(71022, "The password must be at least six digits long"),

	DEVICE_NOT_EXIST_ERROR(71023, "This device is not existed"),
	DEVICE_HAS_BEEN_BIND_TO_OTHER_ERROR(71024, "This device is bind to others"),
	DEVICE_IS_NOT_BIND_TO_YOU_ERROR(71025, "This device is not bind to you"),
	VERIFY_CODE_IS_NOT_MATCH(71026, "Verify code is not match"),
	ILLEGAL_REGISTER(71027, "Illegal registration"),
	;
	private String msg;
	private long code;
	private ResultEnum(long code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	public long getCode() {
		return code;
	}
	public String getMsg() {
		return msg;
	}
	
}
